package adminMenuModel

import (
	commonModel "gitee.com/krio/ginc/example/internal/common/model/common"
)

const AdminMenuTableName = "admin_menu"

func (*AdminMenu) TableName() string {
	return AdminMenuTableName
}

type AdminMenu struct {
	commonModel.Basic `xorm:"extends"`
	Pid               int64                  `xorm:"bigint 'pid' comment('父级ID')"`
	Title             string                 `xorm:"varchar(50) 'title' comment('文本标题')"`
	Href              string                 `xorm:"varchar(50) 'href' comment('页面路径')"`
	Icon              string                 `xorm:"varchar(50) 'icon' comment('显示图标')"`
	Image             string                 `xorm:"varchar(50) 'image' comment('图片')"`
	Target            string                 `xorm:"varchar(50) 'target' comment('链接打开方式')"`
	AfterId           int64                  `xorm:"bigint 'after_id' comment('排序')"`
	Status            commonModel.DataStatus `xorm:"int 'status' comment('状态')"`
}
